//
//  Check.h
//  DWCoach
//
//  Created by Mxionlly on 16/9/29.
//  Copyright © 2016年 dawen_plus. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Check : NSObject
//判断文本是否为空，YES不为空，NO为空
+(bool)checkLenght:(NSString*)strmessage;
+(bool)checkNullLenght:(NSString*)strmessage;

//判断邮箱地址
+(BOOL)validateEmail:(NSString *)candidate;
//身份证号
+(BOOL)validateIdentityCard:(NSString *)identityCard;

//判断文本是否为空，YES:6-16位,而且不能是0,NO:反之
+(bool)checkRangepassword:(NSString*)strmessage;

//判断是否是4位数验证码
+(bool)checkRangeCode:(NSString*)Code;

//正则判断手机号码地址格式
+(BOOL)isMobileNumber:(NSString *)mobileNum;

//是否包含汉字和字母
+(BOOL)IsABChinese:(NSString *)string;

//是否包含汉字
+(BOOL)IsChinese:(NSString *)string;

//时间转换
+ (NSString *)getTime:(NSString *)date withFormat:(NSString *)format;

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
@end
